package com.sbtr.business.feature.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;


import lombok.Data;
import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * 主成分分析规则字段列表 实体类
 *
 * @author dgl
 * @since 2023-05-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("f_fe_pca_rule")
@ApiModel(value="FePcaRule对象")
public class FePcaRule extends Model<FePcaRule> {

    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "参考美林（累计贡献度、因子数）（来自数据字典）")
    private String type;

    @ApiModelProperty(value = "累计贡献度：百分比、因子数：数值，默认1")
    private String rule;

    @ApiModelProperty(value = "fe_datafield表ID")
    private Long datafieldId;

    @ApiModelProperty(value = "原始数据字段名称")
    private String fieldname;

    @ApiModelProperty(value = "特征处理链fe_processing表的ID")
    private Long processingId;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")// 后台传数据到前台
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //前台传数据到后台
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
